package yc.dao.query.queryElement;

import java.util.Collection;

import org.hibernate.criterion.Criterion;

public class SimpleElement implements ConditionElement {
	private static final long serialVersionUID = -3359818155115271335L;
	private String name;
	private boolean isEquals = true;
	private Boolean isLike;
	private Object value;
	
	public SimpleElement() {

	}
	
	public SimpleElement(String name, boolean isEquals, Object value) {
		this.name = name;
		this.isEquals = isEquals;
		this.value = value;
	}
	
	public SimpleElement(String name, boolean isEquals, Boolean isLike , Object value) {
		this.name = name;
		this.isEquals = isEquals;
		this.isLike = isLike;
		this.value = value;
	}
	
	
	public SimpleElement(String name, boolean isEquals, Object[] value) {
		this(name, isEquals, (Object) value);
	}
	
	public SimpleElement(String name, boolean isEquals, Collection<Object> value){
		this(name, isEquals, (Object) value);
	}
	

	@Override
	public Criterion getCriterion() {
		return null;
	}

	@Override
	public Criterion getCriterion(Class<?> clazz) {
		return null;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public boolean isEquals() {
		return isEquals;
	}


	public void setEquals(boolean isEquals) {
		this.isEquals = isEquals;
	}


	public Boolean getIsLike() {
		return isLike;
	}


	public void setIsLike(Boolean isLike) {
		this.isLike = isLike;
	}


	public Object getValue() {
		return value;
	}


	public void setValue(Object value) {
		this.value = value;
	}

}
